package com.cskaoyan.service.admin;

import com.cskaoyan.bean.MarketCategory;
import com.cskaoyan.bean.param.CommonData;
import com.cskaoyan.bean.vo.category.AdminCategorySimpleInfoVo;
import com.cskaoyan.bean.vo.category.AdminCategoryVo;

/**
 * @author :rain
 * @description
 * @since 2022/06/26 22:19
 */
public interface AdminCategoryService {
    //获取种类的list信息
    CommonData<AdminCategoryVo> queryAllList();

    //获得类目等级为1的类目简单信息
    CommonData<AdminCategorySimpleInfoVo> queryL1CategorySimpleInfo();

    //新建一个商品类目
    MarketCategory create(MarketCategory marketCategory);

    //更新商品类别
    void update(AdminCategoryVo adminCategoryVo);

    //删除对应类目和子类目下的类目
    void delete(MarketCategory marketCategory);
}
